<!DOCTYPE html>
<head lang="en">
    {% block head %}
    <meta charset="utf-8" />
    <meta name="viewport" content='width=device-width, initial-scale=1, maximum-scale=1' />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="msvalidate.01" content="77EEEABFED78E79C487C9ABF8AA00ECB" />
    <meta name="google-site-verification" content="oZEnbhqj61Ycaa5-znB5NFZrEd2YSQzmrg_q-bWWFYk" />
    <meta name="baidu-site-verification" content="400WgVvyhl" />

    {% assets "js_normal_all" %}
    <script type="text/javascript" src="{{ ASSET_URL }}"></script>
    {% endassets %}

    {% assets "css_base" %}
    <link rel="stylesheet" href="{{ ASSET_URL }}" type="text/css" />
    {% endassets %}

    <link rel="shortcut icon" href="/img/cosven.ico" />

    <title>Cosven's Blog</title>
    <meta name="keywords" content="cosven blog 博客 python linux 折腾 个人主页">
    <meta name="description" content="Cosven的个人主页，linux,python爱好者兼学习者，喜欢折腾。不想码代码，但是却喜欢">
    {% endblock %}
    <!--
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-60330887-1', 'auto');
      ga('send', 'pageview');

    </script>
    -->
</head>

<body>
    {% block body_left %}
    <div class="left_container">
        <div class="left_layout">
            <div class="aboutme">
                <div class="avatar"><a href="/home"></a></div>
            </div>
            <div class="spacer"></div>
            <div class="cate_layout">
                <ul>
                    {% for cate in categories %}
                    <li id="{{ cate.id }}"><a href="/cate/{{cate.id}}">{{ cate.name }}</a></li>
                    {% endfor %}
                </ul>
            </div>
            <div class="spacer"></div>
            <div class="admin">
                {% if current_user.is_authenticated() %}
                <a href="/logout">注销</a>
                {% else %}
                <a href="/login">管理员登陆</a>
                {% endif %}
                <a href="http://flask.pocoo.org" target="_blank" class="powered" style="background-image: url('/img/flask.png')"></a>
            </div>
        </div>
    </div>
    {% endblock %}

    {% block body_right %}
    {% endblock %}
</body>
</html>
